import { defHttp } from '../http'
import type { CommonAPI } from '../model/_utils'
/**创建dns账户 */
export const createDnsApi: CommonAPI<'/api/dns_account', 'post'> = data =>
  defHttp.post('/api/dns_account', { data })
/**更新dns账户 */
export const updateDnsApi: CommonAPI<'/api/dns_account', 'put'> = data =>
  defHttp.put('/api/dns_account', { data })
/**删除dns账户 */
export const deleteDnsApi: CommonAPI<'/api/dns_account', 'delete'> = data =>
  defHttp.delete('/api/dns_account', { data })
/**查询dns账户 */
export const getDnsApi: CommonAPI<'/api/dns_account/query', 'get'> = params =>
  defHttp.get('/api/dns_account/query', { params })
